import os

father_path = os.path.join(os.path.dirname(os.path.join(os.path.dirname(__file__))), "data")

# dbnet 参数
max_longer_size = 3200  # 长边最大长度
pad_size = 0  # 检测是pad尺寸，有些文档文字充满整个屏幕检测有误，需要pad

# crnn参数
crnn_lite = True
model_path = os.path.join(father_path, "dbnet.onnx")
is_rgb = True
crnn_model_path = os.path.join(father_path, "crnn_lite_lstm.onnx")

# angle
angle_detect = True
angle_detect_num = 30
angle_net_path = os.path.join(father_path, "angle_net.onnx")
